package com.qige.homework;

public class homework1 {
    public static void main(String[] args) {
        ClassC c = new ClassC();
        c.showA();
        c.showB();
        c.showC();
    }
}
abstract class AbsA {
    public int numa = 10;
    public abstract void showA();
}
abstract class AbsB extends AbsA{
    public int numb = 20;
    public abstract void showB();
}
class ClassC extends AbsB{
    public int numc = 30;
    public void showA() {
        System.out.println(numa);
    }
    public void showB() {
        System.out.println(numb);
    }
    public void showC() {
        System.out.println(numc);
    }

}
